package handler;


import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;

import windows.Ferestre;


public class listSelectionListener implements ListSelectionListener{

public Ferestre fereastra;
	public listSelectionListener (Ferestre ferestre)
	{
		fereastra=ferestre;
	}
	public void valueChanged(ListSelectionEvent e) {
		
		
	
		fereastra.getModifyFrame().getNewSelectedCell()[0]=fereastra.getModifyFrame().getTabelAngajati().getSelectedRow();
		fereastra.getModifyFrame().getNewSelectedCell()[1]=fereastra.getModifyFrame().getTabelAngajati().getSelectedColumn();
		fereastra.getModifyFrame().setTableText(e);
		
	}

}
